﻿using System;

namespace WebUI.UserControls.Share
{
    public partial class PageList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ///using (var ctx = new ContextExt())
            ///{
            ///    var req = new GetNewsQueryString().Get(Request.QueryString["qs"]);
            ///    if (req.NodeId == 0) req.NodeId = new GetNewsNodeIdByFolder().Get(ctx, Request.QueryString["folder"]);
            ///    var infos = (from q in ctx.Web_Base_News_Info where q.NodeId == req.NodeId select q).ToList();
            ///    infos.ForEach(f =>
            ///    {
            ///        f.Content = (f.Contents ?? "").Replace("&lt;", "<").Replace("&gt;", ">");
            ///        f.Href = GetPathByNewsInfoId.Get(ctx, f.NodeId, f.PkId);
            ///    });
            ///    var itemx = new List<Ext_News_All_Field_Node_Infox>();
            ///    foreach (var itemx1 in infos)
            ///    {
            ///        itemx.Add(new Ext_News_All_Field_Node_Infox { Info = itemx1, });
            ///    }
            ///    var infox = new Ext_News_All_Field_Node_Infos().Get(itemx);
            ///    this.RepeaterList.DataSource = infox;
            ///    this.RepeaterList.DataBind();
            ///}
        }
    }
}